aboutsummaryrefslogtreecommitdiffstats
path: root/src/app/groups/[groupId]/balances-list.tsx
diff options
context:
space:
mode:
authorSebastien Castiel <sebastien@castiel.me>2023-12-06 21:07:51 -0500
committerSebastien Castiel <sebastien@castiel.me>2023-12-06 21:07:51 -0500
commitec981fd237a50dfc547d8c162b22f4e1a691c9fc (patch)
tree397d50c89122d2044d3343a099dd94b1056170d9 /src/app/groups/[groupId]/balances-list.tsx
parent59bb784b1c50ad57e7a0ce75cd0dc6fcd85a5594 (diff)
Improve responsiveness
Diffstat (limited to 'src/app/groups/[groupId]/balances-list.tsx')
-rw-r--r--src/app/groups/[groupId]/balances-list.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/app/groups/[groupId]/balances-list.tsx b/src/app/groups/[groupId]/balances-list.tsx
index c0d48b9..26092ec 100644
--- a/src/app/groups/[groupId]/balances-list.tsx
+++ b/src/app/groups/[groupId]/balances-list.tsx
@@ -20,13 +20,13 @@ export function BalancesList({ balances, participants, currency }: Props) {
key={participant.id}
className={cn(
'flex',
- balances[participant.id]?.total > 0 || 'flex-row-reverse',
+ balances[participant.id]?.total >= 0 || 'flex-row-reverse',
)}
>
<div
className={cn(
'w-1/2 p-2',
- balances[participant.id]?.total > 0 && 'text-right',
+ balances[participant.id]?.total >= 0 && 'text-right',
)}
>
{participant.name}
@@ -34,7 +34,7 @@ export function BalancesList({ balances, participants, currency }: Props) {
<div
className={cn(
'w-1/2 relative',
- balances[participant.id]?.total > 0 || 'text-right',
+ balances[participant.id]?.total >= 0 || 'text-right',
)}
>
<div className="absolute inset-0 p-2 z-20">